package com.sunrate.investingquote.controller;

import com.sunrate.investingquote.bean.router.ChannelRouter;
import com.sunrate.investingquote.dto.router.Order;
import com.sunrate.investingquote.service.router.ChannelRouterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author yyh
 * @description:
 * @date 2023/06/29/ 18:30
 */
@RestController
@RequestMapping("/channelRouter")
public class ChannelRouterController {


    @Autowired
    private ChannelRouterService channelRouterService;


    @PostMapping("/getChannelRouters")
    public List<ChannelRouter> getChannelRouters(@RequestBody Order order) {
        return channelRouterService.getChannelRouters(order);
    }
}
